home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FLI106C.ZIP;1 / BLUSER.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-12  |  2.1 KB  |  81 lines

  1. //
  2. // The Fusion Library Interface for DOS
  3. // Version 1.06c
  4. // Copyright (C) 1990, 1991, 1992
  5. // Software Dimensions
  6. //
  7. // BlazeClass
  8. //
  9.  
  10. #ifndef __BCPLUSPLUS__
  11. #pragma inline
  12. #endif
  13.  
  14. #include "fli.h"
  15.  
  16. #ifdef __BCPLUSPLUS__
  17. #pragma hdrstop
  18. #endif
  19.  
  20. #define I asm
  21.  
  22. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  23. //
  24. // UserBoxDefine()
  25. //
  26. // Define a custom user box
  27. //
  28. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  29.  
  30. void BlazeClass::UserBoxDefine(int TopLeft, int TopCenter, int TopRight,
  31.   int CenterLeft, int CenterFill, int CenterRight, int BottomLeft,
  32.   int BottomCenter, int BottomRight)
  33. {
  34.   BlazeClass::TopLeft=TopLeft;
  35.   BlazeClass::TopCenter=TopCenter;
  36.   BlazeClass::TopRight=TopRight;
  37.   BlazeClass::CenterLeft=CenterLeft;
  38.   BlazeClass::CenterFill=CenterFill;
  39.   BlazeClass::CenterRight=CenterRight;
  40.   BlazeClass::BottomLeft=BottomLeft;
  41.   BlazeClass::BottomCenter=BottomCenter;
  42.   BlazeClass::BottomRight=BottomRight;
  43. }
  44.  
  45. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  46. //
  47. // UserBoxDefineQuick()
  48. //
  49. // Define a quick custom user box
  50. //
  51. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  52.  
  53. void BlazeClass::UserBoxDefineQuick(int Style)
  54. {
  55.   if (Style<1 || Style>9)
  56.     return;
  57.  
  58.   Style--;
  59.  
  60.   static char *Styles[] = { "⁄ƒø≥ ≥¿ƒŸ",
  61.                             "…Õª∫ ∫»Õº",
  62.                             "÷ƒ∑∫ ∫”ƒΩ",
  63.                             "’Õ∏≥ ≥¿ƒŸ",
  64.                             "÷ƒ∑∫ ∫»Õº",
  65.                             "’Õ∏≥ ≥‘Õæ",
  66.                             "€fl€€ €€‹€",
  67.                             "⁄ƒø≥ ≥‘Õæ",
  68.                             "…Õª∫ ∫”ƒΩ" };
  69.  
  70.   BlazeClass::TopLeft=*(Styles[Style]+0);
  71.   BlazeClass::TopCenter=*(Styles[Style]+1);
  72.   BlazeClass::TopRight=*(Styles[Style]+2);
  73.   BlazeClass::CenterLeft=*(Styles[Style]+3);
  74.   BlazeClass::CenterFill=*(Styles[Style]+4);
  75.   BlazeClass::CenterRight=*(Styles[Style]+5);
  76.   BlazeClass::BottomLeft=*(Styles[Style]+6);
  77.   BlazeClass::BottomCenter=*(Styles[Style]+7);
  78.   BlazeClass::BottomRight=*(Styles[Style]+8);
  79. }
  80.  
  81.